package Model;

public class User {
    private String sname;
    private String password;

    public User() {
    }

    public User(String sname, String password) {
        this.sname = sname;
        this.password = password;
    }

    /**
     * 获取
     * @return sname
     */
    public String getSname() {
        return sname;
    }

    /**
     * 设置
     * @param sname
     */
    public void setSname(String sname) {
        this.sname = sname;
    }

    /**
     * 获取
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    public String toString() {
        return "User{sname = " + sname + ", password = " + password + "}";
    }
}
